package com.meeting.common.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 参数校验异常返回值
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ArgsErrorResult {
    private Boolean success;
    private Integer code;
    private String message;
    private List<FieldErrorDetail> errors;

    @Data
    @AllArgsConstructor
    public static class FieldErrorDetail {
        private String field;
        private String message;
    }
}